package Stringregex;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line = "abc1513def1451ghi465";
        line = line.replaceAll("[0-9]+","#NUMBER#");//数字部分替换
        System.out.println(line);
    }
}
